package com.tencreat.domain.mall.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class GoodsVO {
    @ApiModelProperty(value = "规格ID")
    private Long normsId;
    @ApiModelProperty(value = "商品ID")
    private Long goodsId;
    @ApiModelProperty(value = "商品数量")
    private Long goodsNum;

    public Long getGoodsNum() {
        if(goodsNum == null){
            return 1L;
        }
        return goodsNum;
    }
}
